Part Number Hot Search : 
BYV27 CM810TVL TSC3827 XMEGAA1 SP488A NDB610AE BD234 CJF6107
Product Description
Full Text Search
 

To Download BL6810 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  bl 6810 shanghai belling c orp., ltd. 1 / 50 BL6810 power line communication microcontroller data s heet
bl 6810 shanghai belling c orp., ltd. 2 / 50 c atalog 1 overview ................................ ................................ ................................ ................................ .............................. 5 1.1 BL6810 features ................................ ................................ ................................ ................................ .. 5 1.2 BL6810 block diagram ................................ ................................ ................................ ......................... 5 1.3 applications ................................ ................................ ................................ ................................ ......... 6 1.4 BL6810 microcontroller ................................ ................................ ................................ ....................... 6 1.4.1 fully compatible with the 8051 ................................ ................................ ................................ ... 6 1.4.2 high speed ................................ ................................ ................................ ................................ ... 6 1.4.3 on - chip memory ................................ ................................ ................................ .......................... 6 1.4.4 ca rrier communication ................................ ................................ ................................ ................ 7 1.4.5 uart ................................ ................................ ................................ ................................ ............ 7 2 electrical characteristics ................................ ................................ ................................ ................................ ...... 7 2.1 limit parameter ................................ ................................ ................................ ................................ ... 7 2.2 operat ing parameters ................................ ................................ ................................ .......................... 8 2.3 dc electrical characteristics ................................ ................................ ................................ ................. 9 3 package and pin configuration ................................ ................................ ................................ ............................ 9 3.1 pin diagrams ................................ ................................ ................................ ................................ ........ 9 3.2 package outlines ................................ ................................ ................................ ................................ 10 3.3 pin configuration ................................ ................................ ................................ ............................... 11 4 microcontroller ................................ ................................ ................................ ................................ .................. 12 4.1 instruction set ................................ ................................ ................................ ................................ .... 13 4.2 memory organization ................................ ................................ ................................ ........................ 13 4.2. 1 program memory ................................ ................................ ................................ ....................... 13 4.2.2 data memory ................................ ................................ ................................ ............................. 14 4.2.3 general purpose registers ................................ ................................ ................................ ......... 14 4.2.4 stack ................................ ................................ ................................ ................................ ........... 15 4.2.5 special function registers ................................ ................................ ................................ .......... 16 4.3 multiplication and division unit mdu ................................ ................................ ........................ 18 5 flash memory ................................ ................................ ................................ ................................ .................. 20 6 clock ................................ ................................ ................................ ................................ ................................ .. 20 7 interrupt ................................ ................................ ................................ ................................ ............................. 20 7.1 interrupt so urce and vector ................................ ................................ ................................ .............. 21 8 uart ................................ ................................ ................................ ................................ ................................ .. 23 8.1 uart0 mode ................................ ................................ ................................ ................................ ...... 23 8.2 mode0 ................................ ................................ ................................ ................................ ................ 25 8.3 mode1 ................................ ................................ ................................ ................................ ................ 25 8.4 mode2 ................................ ................................ ................................ ................................ ................ 26 8.5 mode3 ................................ ................................ ................................ ................................ ................ 26 9 timer ................................ ................................ ................................ ................................ ................................ .. 27 9.1 timer0 and timer1 ................................ ................................ ................................ ............................. 27 9.2 ti mer2 ................................ ................................ ................................ ................................ ................ 30 10 watchdog ................................ ................................ ................................ ................................ ................... 32 11 spi ................................ ................................ ................................ ................................ .............................. 33
bl 6810 shanghai belling c orp., ltd. 3 / 50 11.1 system block ................................ ................................ ................................ ................................ ...... 33 11.2 seque nce diagram ................................ ................................ ................................ ............................. 34 11.3 download processes ................................ ................................ ................................ .......................... 34 11.4 upload processes ................................ ................................ ................................ ............................... 34 12 chip work mode ................................ ................................ ................................ ................................ ........ 35 12.1 soc mode ................................ ................................ ................................ ................................ .......... 35 12.2 device mo de ................................ ................................ ................................ ................................ ...... 35 13 application notes ................................ ................................ ................................ ................................ ....... 36 13.1 communication block description ................................ ................................ ................................ ..... 36 13.2 spi description ................................ ................................ ................................ ................................ ... 37 13.3 bl6 810 expand register ................................ ................................ ................................ ..................... 39 13.3.1 chip id ................................ ................................ ................................ ................................ ........ 39 13.3.2 the period of line voltage ................................ ................................ ................................ .......... 39 13.3.3 agc control ................................ ................................ ................................ ................................ 39 13.3.4 transmission control ................................ ................................ ................................ .................. 40 13.3.5 frequency/rate select ................................ ................................ ................................ ............... 40 13.3.6 transmit power control ................................ ................................ ................................ ............. 40 13.3.7 sending data ................................ ................................ ................................ .............................. 40 13.3.8 sending status ................................ ................................ ................................ ............................ 41 13.3.9 receive status ................................ ................................ ................................ ............................ 41 13.3.10 carrier 1 frame phase ................................ ................................ ................................ ........ 41 13.3.11 carrier 1 interrupt information ................................ ................................ .......................... 42 13.3.12 carrier 1 received data ................................ ................................ ................................ ...... 42 13.3.13 carrier 1 parity ................................ ................................ ................................ ................... 42 13.3.14 carrier 2 frame phase ................................ ................................ ................................ ........ 42 13.3.15 carrier 2 interrupt information ................................ ................................ .......................... 43 13.3.16 carrier 2 received data ................................ ................................ ................................ ...... 43 13.3.17 carrier 2 parity ................................ ................................ ................................ ................... 43 13.3 .18 carrier 3 frame phase ................................ ................................ ................................ ........ 43 13.3.19 carrier 3 interrupt information ................................ ................................ .......................... 44 13.3.20 carrier 3 received data ................................ ................................ ................................ ...... 44 13.3.21 carrier 3 parity ................................ ................................ ................................ ................... 44 13.3.22 carrier 4 frame phase ................................ ................................ ................................ ........ 44 13.3.23 carrier 4 interrupt information ................................ ................................ .......................... 45 13.3.24 carrier 4 received data ................................ ................................ ................................ ...... 45 13.3.25 carrier 4 parity ................................ ................................ ................................ ................... 45 13.3.26 receiving status and mask ................................ ................................ ................................ . 45 13.3.27 rec_int_status ................................ ................................ ................................ ................ 46 13.3.28 receiving snr calc. status ................................ ................................ ................................ . 46 13.3.29 receiving signal power ................................ ................................ ................................ ...... 46 13.3.30 receiving signal noise ................................ ................................ ................................ ........ 47 13.3.31 crc initial register ................................ ................................ ................................ ............. 47 13.3.32 crc input data ................................ ................................ ................................ ................... 47 13.3.33 crc data ................................ ................................ ................................ ............................. 47
bl 6810 shanghai belling c orp., ltd. 4 / 50 13.3.34 rs coding register ................................ ................................ ................................ ............. 48 13.3.35 rs control register ................................ ................................ ................................ ............. 48 13.3.36 user flash control register ................................ ................................ ................................ 49 13.3.37 write protect register ................................ ................................ ................................ ........ 50
bl 6810 shanghai belling c orp., ltd. 5 / 50 1 overview the BL6810 is a fully integrated narrow - band power line communication chip . it supports four channels bpsk /dsss modulation / demodulation and has multi - frequency, multi - rate f eatures , supports a daptive signal receiving . the BL6810 integrated 51mcu core and c ompatible with eia709.2 and dl/ t - 645 , c an be used in low - voltage power line carrier automatic meter reading (amr), smart home control, remote streetlight monitoring, industrial control and other applications . 1.1 BL6810 features ? operating voltage 5v ? i ntegrated 8051 core , compatible with the 8051 instruction se t and bus structure ? m odulation mode : bpsk /dsss ? three communication rate s: 5.48k/ 365bps ( dsss 15 )/87bps( dsss 63 ) a daptive receiving ? four channel s: 131.58k/263.16k/312.5k/416.67khz a daptive receiving ? s upport phase detection ? on - chip a nalog band pass filter ? on - chip h igh - performance digital narrowband filter ? on - chip 66db low noise agc ? o n - chip rs hardware codec, with forward error correction capabilities ? hardware crc16 ? r eceived si gnal strength indication , snr indication, support for routing algorithm 1.2 BL6810 blo ck diagram hpf agc lpf 5m,12bit dac predriver 5m,12bit adc plc transceiver (bpsk,dsss15,dsss63) 4 carriers mcu controller flash memory sram flash controller spi interface power monitor reference gen crystal oscillator configuration & status registers ios/uart regulator BL6810 block diagram crc rs codec lpf
bl 6810 shanghai belling c orp., ltd. 6 / 50 1.3 applications ? a utomatic meter reading ? smart home ? s treet light ing control ? i ntelligent building control ? i ndustrial automation control ? s olar control 1.4 BL6810 microcontroller 1.4.1 f ully c ompatible with the 8051 BL6810 core is fully compatible with mcs - 51tm s instruction set. y ou can use the standard 803x / 805x assemblers and compilers fo r software development. it has a standard 8052 peripheral component , including three 16 - bit counter / timers, a full - duplex uart with enhanced baud rate configuration, 3840 bytes sram, 28kbytes flash and 512 bytes user flash. 1.4.2 high s peed the instruction execution speed of BL6810 is greatly improved with p ipeline structure . in the 8051, all instructions cost 12 or 24 system clock cycles excep t for mul and di v , and the maximum system clock frequency is 12 - 24mhz. for BL6810 core , most single - byte instruction execution time is just one system clock cycle. 1.4.3 on - chip m emory BL6810 has a standard 8051 program and data address configuration. it includes 256 bytes of d ata ram, of which t he upper 128 bytes is dual - mapped. the upper 128 bytes of ram can be accessed by indirect addressing , but t he 128 bytes sfr can be accessed by direct addressing . the lower 128 bytes of ram can be accessed by both indirect and direct addressing. the first 32 bytes is served for four gene ral register banks , and the next 16 bytes can be eit her addressable by byte or by bit. external data memory is 3840 bytes, program memory contains 28k bytes of flash.
bl 6810 shanghai belling c orp., ltd. 7 / 50 1.4.4 carrier communication carrier communication unit use 12bit adc and dac (sampling frequency of 5mh z) that i ntegrate s with low - noise 66db gain - adjustable automatic gain controller and achieves industry leading se nsitivity as high as 0.5 u v . it can supports adaptively four c a rrier frequencies : 131.58k , 263.16k , 312.5k , 416.67 khz ; also three communication data rate: 5.48kbps , 365bps , and 87bps . 1.4.5 uart BL6810 has a full duplex uart with enhanced baud rate configuration. serial bus only needs very little cpu intervention for it i s all implemented by hardware and also can be interrupted . 2 electrical characteristics 2.1 limit p arameter p arameter min . max . units e nvironm ent t emperature - 55 125 storage temperature - 5 5 150 the voltage of a ny port i/o pins or rst pin relative to gnd - 0.3 vdd+0.3 v the voltage of vdd pin relative to dgnd - 0.3 6.0 v maximum current of vdd to gnd 500 ma maximum output current of i/o 100 ma note: exceeding the limit parameters listed above may cause permanent damage to the device . the r eliability will be reduce d under the conditions of the maximum allowable value or above the maximum allowable value for a long time.
bl 6810 shanghai belling c orp., ltd. 8 / 50 2.2 o perating p arameters symbol parameter description condition units min. typ. max. bwbpf receiving band pass filter bandwidth spectrum analyzer sweep 110 - 550 khz vinmin input sensitivity differential input 5 uv vinmax m aximum input amplitude differential input 400 mv agc_range agc range 0 66 db agc_step agc minimum step 2.2 db voffs_rx_in input bias agc=66db 0.1 mv voffs_rx_in input bias agc=0db 20 mv voutmax output amplitude load =1m 1.5 v hd2 second harmonic fc=131.58khz 40 db 263.16khz 312.5khz 416.67khz hd3 third harmonic fc=131.58khz 40 db 263.16khz 312.5khz 416.67khz cltx_out output capacitive load 400 pf rltx_out output resistive load 200 fc carrier frequency 131.58 khz 263.16 312.5 416.67 data rate data rate bpsk 5480 bps ds15 365 ds63 87
bl 6810 shanghai belling c orp., ltd. 9 / 50 2.3 dc electrical characteristics p arameter symbol specification units min. typ. max. supply voltage v dd 4.5 5 5.5 v operating frequency f 20 m hz operating temperature t a - 40 +85 ? c operating current i 35 ma 3 package and pin configuration 3.1 pin diagrams 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 BL6810 test mode rstb tdo tdi tck tds zx txd rxd int sdo sdi scs sck dgnd dvdd osci osco nc_p nc3 nc_n tx avdd agnd vref rxp rxn
bl 6810 shanghai belling c orp., ltd. 10 / 50 3.2 package outlines
bl 6810 shanghai belling c orp., ltd. 11 / 50 3.3 pin configuration BL6810 is packaged with lqpf32 . pin no. pin name pin type description 1 nc not used 2 mode i 0: device mode, 1: soc mode 3 rstb i driving this pin low resets the mcu 6 tdo i o soc mode: flash p rogramming interface cannot be used for gp io device mode: nc 7 tdi io soc mode: flash p rogramming interface cannot be used for gpio device mode: nc 8 tck io soc mode: flash p rogramming interface cannot be used for gpio device mode: nc 9 t d s o soc mode: flash p rogramming interface can be used as p37 only for output device mode: nc 10 zx io zero detect input 11 txd io uart output can be used as p31 12 rxd io uart input can be used as p30 13 int io soc p36 device mode usually high level , output low level after receiving power line data. 14 sdo io soc mode p35 device mode spi output 15 sdi io soc mode p34 device mode spi input 16 scs io soc mode p33 device mode spi chip select 17 sck io soc mode p32 device mode spi clock
bl 6810 shanghai belling c orp., ltd. 12 / 50 18 dgnd io digital gnd 19 dvdd io digital vdd 22 osci i oscillator input 23 osco o oscillator output 24 nc io n ot connected 25 nc io n ot connected 26 nc io n ot connected 27 tx o carrier output 28 avdd io a nalog vdd 29 agnd io analog gnd 30 vref io the reference voltage . this pin provide s the required bias current for internal circuit by connect ing an external 180k ohm resistor to ground. 31 rxp i plc signal input p ositive differential terminal 32 rxn i plc signal input negative differential terminal note all the output pins are o pen - drain which requires 4.7k pull - up resistor. 4 microcontroller mcu core is enh anced 8051 microcontroller and compati ble with mcs - 51tm instruction set, you can use the standard 803x / 805x assemblers and compilers for software development. the series mcu has all the standard 8051 mcu peripherals. BL6810 microcontroller core has the organizational structure and peripherals with st andard 8051 , in addition to increased custom peripherals and functions . it greatly enhances its handling capacity . BL6810 core has the following characteristics:
bl 6810 shanghai belling c orp., ltd. 13 / 50 ? f ully compatible with mcs - 51 instruction set ? 1 0mhz clock frequency ? 3840 b ytes s ram ? 28k b ytes flash ? expanded interrupt processing system 4.1 i nstruction set b l6810 controller instruction set is fully compatible with the standard mcs - 51tm instruction set. y ou can use standard development tools to develop BL6810 8051 software. all BL6810 instructions are similar with mcs - 51tm products o n the binary code and functions, including opcode , addressing modes and effect on psw flags. 4.2 memory organization bl681 0 memor y organization is similar with standard 8051 memory organization. there are two separate memory spaces: program memory and data memory. program memory size is 28kb. ram data memory including internal and external (on - chip) ram, the internal ram size is 256 b, external (on - chip) ram size is 3584b. at the same time, the chip also includes a user 512b ytes flash, the user can store the data. BL6810 have a group dedicated expansion register for power line carrier communications . 0x6fff program memory (28kb) internal data memory (256b) 0xff upper 128 bytes sfr memory 0x80 0x7f lower 128 bytes 0x0000 0x00 4.2.1 program memory BL6810 supports 28kb program memory and allocated addresses 0x0000 to 0x6fff .
bl 6810 shanghai belling c orp., ltd. 14 / 50 4.2.2 data memory BL6810 have 256 bytes internal ram and allocated 0x00 to 0xff. t he lower 128 bytes use for general register and temp register, it can be accessed by direct or indirect addressing modes. f our general register bank are allocated addresses 0x00 to 0x1f, there are eight 8 - bits registers in each bank . t he following 16 bytes can be accessed by byte or bit from 0x20 to 0x2f. upper 128 bytes can only be accessed by indirect addressing. the storage bank and the special function registers (sfr) occupy the same addres s space, but physically separate from sfr space. when add ressing above 0x7f, addressing mode determines if the cpu access the upper 128 bytes data memory or access sfr. using direct addressing mode instructions will access the sfr space, using instruction indirect addressing above 0x7f address will access the upper 128 bytes data memory. 4.2.3 general purpose registers the lower 32 bytes data memory from address 0x00 to 0x1f can be use for four gene ral - purpose registers . each bank has eight 8 - bit registers, called r0 - r7. only o ne of them can be selected at the same time . psw.3 and psw.4 bits are used to selec t the active register bank. f ast switching is allowed when entering subroutines or interrupt service routine. indirect addressing mode uses r0 and r1 as i ndirect a ddress r egister . in addition to the data memory accessed by bytes, 16 data memory data units from 0x20 to 0x2f can be access ed by bits. each bit has a bit address from 0x00 to 0x7f. the byte at address 0x20 bit - 0 allocated 0x00, bit - 7 allocated 0x07. the byte at address 0x2 f bit - 7 allocated 0x 7f . if it is bit addressing or byte addressing can be decided by instruction type.
bl 6810 shanghai belling c orp., ltd. 15 / 50 bank 0 bank 1 bank 2 bank 3 address register address register address register address register 00h r0 08h r0 10h r0 18h r0 01h r1 09h r1 11h r1 19h r1 02h r2 0ah r2 12h r2 1ah r2 03h r3 0bh r3 13h r3 1bh r3 04h r4 0ch r4 14h r4 1ch r4 05h r5 0dh r5 15h r5 1dh r5 06h r6 0eh r6 16h r6 1eh r6 07h r7 0fh r7 17h r7 1fh r7 4.2.4 stack s tack can be located in t he 256 - byte data memory and specified by the stack pointer sp 0x81 . sp points to the location last used. next data will be stored in the sp + 1, then sp is incremented. after resetting the stack pointer is i nitialized to address 0x07, t herefore the first data pushed in to the stack will be stored in the address 0x08, which is also the first register (r0) on bank 1 . if you use more tha n one register bank , sp should be initialized to location data memory which is not used for data storage. stack depth up to 256 bytes.
bl 6810 shanghai belling c orp., ltd. 16 / 50 4.2.5 special function register s directly addressable memory space from 0x80 to 0xff is called the special function registers (sfr). sfr can control the resources and peripheral of BL6810 and data exchange with these resources and peripherals. BL6810 has all sfr of standard 8051, also added some sfr used for configur ing and access ing p roprietary subsystem . this allows the instruction set is compatible with mcs - 51 tm under the premise of addin g new functionality . anytime the 0x80 ~ 0xff memory space access ing by the direct addressing mode is for sfr . addresses ending in 0x0 or 0x8 sfr ( e.g. p0, tcon, p1, scon, ie, etc.) as well as byte addressable or bit addressable, other s sfr byte - addressable only. sfr memory map sfr register address reset description p 0 80h ffh port 0 s p 81h 07h stack point dpl 82h 00h data pointer low dph 83h 00h data pointer high address 0 /8 1 /9 2 /a 3 /b 4 /c 5 /d 6 /e 7 /f f 8 ssc_dat ssc_adr f 0 b e 8 md0 md1 md2 md3 md4 md5 arcon e acc d 8 ext_dat ext_adr data_buf adcon d 0 psw c 8 t2con t2mod tl2 th2 c 0 b 8 ip0 s0relh b 0 p3 a 8 ien0 s0 rell a 0 p2 98 s0con s0buf 90 p1 dps wdtcon wdtdata 88 tcon tmod tl0 tl1 th0 th1 ckcon 80 p0 sp dpl dph dpl1 dph1 pcon
bl 6810 shanghai belling c orp., ltd. 17 / 50 dpl1 84h 00h data pointer low 1 dph1 85h 00h data pointer high 1 pcon 87h 00h power control register tcon 88h 00h counter / t imer control register tmod 89h 00h counter / t imer mode register tl0 8ah 00h counter / t imer 0 low tl1 8bh 00h counter / t imer 1 low th0 8ch 00h counter / t imer 0 high th1 8dh 00h counter / t imer 1 high ckcon 8eh 01h cpu external data bus delay control p 1 90 h ffh port 1 dps 92h 00h data pointer select register dps.0 = 0 : for dptr dps.0 = 1 : for dptr1 wdtcon 95h 00h watchdog control register wdtrel 96h 00h watchdog data register s0con 98h 00h uart0 control register s0buf 99h 00h uart0 data buffer p2 a0h 00h port 2 ien0 a8h 00h interrupt enable register s0rell aah 00h uart0 baud register low p3 b0h ffh p ort 3 ip0 b8h 00h interrupt priority register s0relh bah 00h uart0 baud register high psw d0h 00h program status word ext_dat d8h 00h extended register data ext_adr d9h 00h extended register address data_buf dah 00h plc send data buffer ( soc mode) adcon dch 00h uart0 baud control register acc e0h 00h accumulator md0 e9h 00h multiplication and division register 0 md1 eah 00h multiplication and division register 1 md2 ebh 00h multiplication and division register 2 md3 ech 00h multiplication and division register 3
bl 6810 shanghai belling c orp., ltd. 18 / 50 md4 edh 00h multiplication and division register 4 md5 eeh 00h multiplication and division register 5 arcon efh 00h arithmetic control register b f0h 00h b register ssc_dat f8h 00h user flash data ssc_adr f9h 00h user flash address 4.3 multiplication and d ivision unit mdu can significantly increase the speed of an unsigned 16 - bit multiplicatio n and 32 division, shifting operating . the following table shows the implementation of the char acteristics of these operations . mdu does not contain state flag of operation completed . with a nop delay for waiting necessary operation time in order to define the operation end time is t he most effective way to use md u , calculating the clock starts from the last data written . operations result reminder clock time 32 - bits divided by 16 - bits 32bit 16bit 17 16 - bits divided by 16 - bits 16bit 1 6bit 9 16 - bits multiplied by 16 - bits 16bit 10 32 - bits normalized 3 - 20 32 - bits shift 3 - 18 mdu work by accessing operands and operating results of md0 - md5 and arcon . r r r/w r/w r/w r/w r/w r/w mdef mdov slr sc4 sc3 sc2 sc1 sc0 arcon reset 00000000 sfr address 0x ef 7 mdef mdu error flag mdu error flag , i ndicates an operation error execution (when one of the new arithmetic operation is interrupted or restart). 6 mdov mdu overflow flag when divisor is zero or multiplication result exceeds 0x0000ffffh, mdov bit is set to 1. 5 slr shift direction control bit 0 left shift 1 right shift 4 - 0 sc4 - 0 shift count sc[4:0] = 0 normalization function sc[4:0] 0 shift function
bl 6810 shanghai belling c orp., ltd. 19 / 50 r/w r/w r/w r/w r/w r/w r/w r/w b it7 b it6 b it5 b it4 b it3 b it2 b it1 b it0 md0 - md5 reset 00000000 sfr address 0xe9 - 0xee
bl 6810 shanghai belling c orp., ltd. 20 / 50 5 flash memory a 28k b ytes internal flash is provided primarily for stor ing and executing 8051 mcu code . it c an be programmed to programming interface. w e provide the programming tools flash programming utility too, code programming through custom programming interface . more detail please refer to "programming guide " . 6 clock a 2 0 mhz external oscillator input is provided to hook to an external crystal. internal oscillator time base signal is provided by the internal oscillator circuit and e xternal quartz crystal, after an internal divide, mcu work at 10mhz. 7 interrupt BL6810 includes an extended interrupt system supporting five interrupt sources, including the three timer interrupts; a n uart interrupt and a plc receive interrupt (external interrupt 1). each interrupt source hold one or more interrupt flag in an sfr. when a peripheral or external source meets a valid interrupt condition, the corresponding interrupt flag is set to logic 1. if a n interrupt source is enabled , the interrupt will generate when interrupt flag is set. once the current instruction is executed, cpu generates an lcall to a predetermined address to begin execution of an interrupt service routine (isr). each isr must end with reti instruction and return to the next instruction before executing the interrupt . if the interrupt is not enabled, the hardware interrupt flag will be ignored, and p rogram is to continue . if i nterrupt flag is set or not will not be effected by interrupt enable or disable. each interrupt source can be enabled or disabled by an sfr (ien0) relevant interrupt enable bit , but ea bit (ien0.7) must be set to ' 1 ', to ensure that each individual interrupt enable bits are valid. regardless of each interrupt enable bit setting, clearing ea bit will disable all interrupts. some interrupt flag is automatically cleared when the cpu enters isr, but most of the interrupt flag is not cleared by hardware and must be cleared before the isr return by software. if an interrupt flag still remains set after the cpu complete d the return from interrupt (reti) instruction, it will immediately generate a new interrupt request, cpu will re - enter the isr after executing the next instruction.
bl 6810 shanghai belling c orp., ltd. 21 / 50 7.1 interrupt source and vector mcu supports 16 interrupt sources. software can simulate an interrupt by a ny one interrupt flag is set to logic 1 . if the interrupt flag is enabled, the system will generate an interrupt request, cpu interrupt flag will jump to the corresponding isr address. the following table lists BL6810 interruption. source vector no. flag enable timer 0 overflow 000bh 1 tf0 (tcon.5) et0 (ien0.1) plc receive interrupt 0013h 2 ie1 (tcon.3) ex1 (ien0.2) timer 1 overflow 001bh 3 tf1 (tcon.7) et1 (ien0.3) uart0 0023h 4 ri0 (scon0.0) es (ien0.4) ti0 (scon0.1) timer 2 overflow 0033h 6 tf2h (t2con.7) et2 (ien0.6) r/w r/w r/w r/w r/w r/w r/w r/w ea et2 es0 et1 ex1 et0 ien0 reset 00000000 sfr address 0xa8 all bits 0 disable 1 enable 7 ea enable all the interrupts 6 et2 timer2 interrupt enable 5 nc 4 es0 uart0 interrupt enable 3 et1 timer1 interrupt enable 2 ex1 plc receive interrupt enable 1 et0 timer0 interrupt enable 0 nc r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w pt2 ps0 pt1 px1 pt0 ip0 reset 00000000 sfr address 0xb8 all bits 0 low priority 1 high priority 7 nc 6 p t2 timer 2 interrupt priority 5 nc 4 p s0 uart0 interrupt priority
bl 6810 shanghai belling c orp., ltd. 22 / 50 3 p t1 timer 1 interrupt priority 2 p x1 plc interrupt priority 1 p t0 timer 0 interrupt priority 0 nc
bl 6810 shanghai belling c orp., ltd. 23 / 50 8 uart BL6810 provides an async hronous, full duplex uart. it supports standard 8051 model 0,1,2, 3 with a n enhanced baud rate generator circuit . m ultiple clock sources can be used to generate standard baud rates. receive data buffer mechanism allows uart0 sta rt to receive the second byte before read the first byte. uart0 has two related sfrs: serial control register (scon0) and serial data buffer (sbuf0). sbuf0 can be access ed for send ing and receiv ing . to write sbuf0 will automaticall y access the t ransmit reg ister and to read sbuf0 will automatic access to the receive register . i f the uart0 interrupt is enabled, the interrupt will be occurred when send ing was complete d (scon0 ti0 is set in ' 1 ') or receives data bytes (scon0 ri0 is set in ' 1 '). hardware will not clear the interrupt flag when mcu jump to the interrupt service routine. the interrupt flag must be cleared by software. 8.1 uart0 mode uart0 supports four operating modes (one synchronous mode and three asynchronous mode s ) by setting s0con r egister. four modes provide different communication protocols and baud rates. r/w r/w r/w r/w r/w r/w r/w r/w sm0 sm1 sm2 ren tb8 rb8 ti0 ri0 s0con reset 00000000 sfr address 0x 9 8 7 sm0 urat0 operating mode select 6 sm1 urat0 operating mode select 5 sm2 multiprocessor communi cation enable mode 0 sm2=0 mode 1 sm2=0 ignore stop bit sm 2=1 stop bit =1 ri0 a ctivate d mode 2/3 sm2=0 ignore bit8 sm 2=1 bit8 =1 ri0 a ctivate d 4 ren receive enable 0 uart0 disable 1 uart0 enable 3 tb8 bit8 transmit bit this bit is assigned to bit8 of m odes 2 and 3 and set or cleared by software . 2 rb8 bit8 receive bit
bl 6810 shanghai belling c orp., ltd. 24 / 50 this bit is assigned to bit8 of m odes 2 and 3 . at mode0, this bit will be set to the receiving stop bit. 1 ti0 transmit interrupt flag when uart0 transmitted one byte (send bit7 at mode0 , send stop bit at other s modes ), th is bit is set by hardware . if uart0 interrupt is enabled, the location of an mcu will jump to uart0 interrupt service routine when this bit was set to 1 . this bit must be manually cleared by software. 0 ri0 receive interrupt flag when uart0 received one byte , th is bit is set by hardware . if uart0 interrupt is enabled, the location of an mcu will jump to uart0 interrupt service routine when this bit was s et to 1 . this bit must be manually cleared by software. sm0 s m 1 mode baud rate 0 0 mode 0 0 1 mode 1 1 0 mode 2 1 1 mode 3 adcon baud rate control register reset 00000000 sfr address 0x dc 7 bd urat0 variable baud rate selection bits 0 uart0 select the baud rate by s0rel register 1 uart0 select the baud rate by timer1 6 - 0 nc r/w r/w r/w r/w r/w r/w r/w r/w bit2 bit1 bit0 s0relh baud rate high register reset 00000000 sfr address 0 xba r/w r/w r/w r/w r/w r/w r/w r/w bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 s0rell baud rate low register reset 00000000 sfr address 0 xaa
bl 6810 shanghai belling c orp., ltd. 25 / 50 8.2 mode 0 mode 0 provides synchronous, half - duplex communication. transmit and receive data on rx0 pin, tx0 pin provides transmit and receive shift clock. data transmission begins when performing a write s0buf register instructions. transmit and receive data are 8 - bits , lsb first, t he interrupt flag ti0 will be set at the end of the e ighth bit . the data will be received w hen the receive enable bit ren is set to 1 and receiv e interrupt flag ri0 is cleared . ri0 flag is set after the eight h bit being shifted and the receiving process stops , until software clears ri0. an interruption will be occurred after ti0 or ri0 is set if the interrupt is enable. mode 0 b aud rate calculation formula: baud r ate = fclk/12 8.3 mode 1 mode 1 provides a standard asynchro nous, full duplex communication . ea ch data byte using 10 bits : 1 start bit, 8 data bits (lsb first) and a stop bit. data transmits from tx0 pin and receives at rx0 pin. 8 data bits stored in s0buf, stop bit put in rb8. transmission starts after execut ed a command to write a byte to s0buf register. wh en sending end , ti0 interrupt flag is set. d ata reception can begin when ren receive enable bit is set to 1. the da ta byte will be loaded into the receiving register s0buf a fter receiving the stop bit if meet the following conditions : ri0 is 0, and stop bit is 1 when sm2 is 1 . th at mean s the last time reception was done and interrupt was cleared , the shift has been mov ed to the stop bit. then the 8 - bits data is stored in s0buf, stop bit is stored in rb8, ri0 flag is set. at the same time, if interrupts are enabled, the interrupt occurred when ti0 or ri0 was set. mode 1 baud rate calculation formula: adcon.7=0: baud rate = 2 ???? ? ? 1 ?? 32 timer1 must be set to mode2 adcon.7=1: baud rate = 2 ???? ? ???? 64 ? ( 2 10 ? ? 0 ??? ) t1ov= 12 ???? 2 ? ???? 12 ? ( 256 ? ? ? 1 ) for example, using 20m crystal oscillator (internal default divided to 10m), each baud rate configuration as follows:
bl 6810 shanghai belling c orp., ltd. 26 / 50 b aud r ate 1200 2400 4800 9600 19200 38400 th1 0x ea 0x f5 0x f5 0x bf 0x df 0x f0 pcon 0x0 0 0x0 0 0x 80 0x 88 0x 88 0x 88 8.4 mode 2 mode 2 provides asynchronous, full duplex communication. ea ch data byte using 11 bits : 1 start bit, 8 data bits (ls b first), a programmable bit (bit8) and one stop bit. mode 2 suppor ts multiprocessor communication s and hardware address recognition. when sending, bit8 that determined by the tb8 values can be assigned to the parity symbol p, or used for multiprocessor communications. when receiving, bit8 is put in rb8, the stop bit is ignored. transmission starts after execut ed a command to write a byte to s0buf register. wh en sending end , ti0 interrupt flag is set. d ata recep tion can begin when ren receive enable bit is set to 1. the data byte will be loaded into the receiving register s0buf a fter receiving the stop bit if ri0 is 1 and meet the following conditions : 1. sm2 is 0, means 8 - bits data received, bit8 is 0 or bit8 is p arity bit. 2. sm2 is 1, bit8 is 1 and the address received matches the address of uart0. then the 8 - bits data is stored in s0buf, stop bit is stored in rb8, ri0 flag is set. at the same time, if interrupts are enabled, the interrupt occurred when ti0 or ri0 was set. mode 2 baud rate calculation formula: smod( pcon .7) = 0 : baud rate = fclk/64; smod( pcon .7) = 1 : baud rate = fclk/32 8.5 mode 3 model 3 uses transport protocol of mode 2, bau d rate is the same as the model 1. ea ch data byte using 11 bits : 1 start bit, 8 data bits (ls b first), a programmable bit (bit8) and one stop bit t he baud rate calculation formula of mode3 is the same as mode1.
bl 6810 shanghai belling c orp., ltd. 27 / 50 9 timer BL6810 supports 3 16 - bits timer/counter. two of them are compatible with the standard 8051 counter / t imers, the other one is a 16 - bit s auto - reload timer can be used as a general purpose timer. these timers can be used to measure time intervals, count external events and generate per iodic interrupt requests. timer0 and timer 1 are nearly identical, there ar e four operating modes. timer 2 can be used as a 16 or two 8 - bit auto - reload timer. 9.1 timer0 and timer1 each counter/ timer is a 16 - bit register being accessed in the form of two bytes : a low byte (tl0 or tl1) and a high byte (th0 or th1). counter/ timer control register (tcon) can enable time r0 and timer1 and show theirs state . by setting ien register et0 to 1 to enable the timer 0 interrupt and setting et1 position to 1 to enable the timer 1 interrupt. these two counter/ timers ha ve four operatin g mod es, by setting the mode select bits in counter/ timer mode (tmod) register to select the operating mode, each timer can be configured independently. four modes of operation are identical to the standard 8051. r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w tf1 tr1 tf0 tr0 ie1 it1 ie0 it0 tcon reset 00000000 sfr address 0x8 8 7 tf1 timer 1 overflow flag 0 timer 1 does not overflow 1 timer 1 overflow cleared by hardware when processor vectors to interrupt routine. set by hardware on timer/counter overflow, when the timer 1 register overflows. 6 tr1 timer1 run control bit 0 disable timer1 1 enable timer1 5 tf0 timer 0 overflow flag 0 timer 0 does not overflow 1 timer 0 overflow cleared by hardware when processor vectors to interrupt routine. set by hardware on timer/counter overflow, when the timer 0 register overflows. 4 tr 0 timer0 run control bit 0 disable timer0 1 enable timer0
bl 6810 shanghai belling c orp., ltd. 28 / 50 3 ie1 interrupt 1 edge flag cleared by hardware when interrupt is processed if edge - triggered (see it1).set by hardware when external interrupt is detected on int1# pin. 2 it1 interrupt 1 type control bit clear to select low level active (level triggered) for external interrupt 1 (int1#).set to select falling edge active (edge triggered) for external interrupt 1. 0 /int1 level triggered 1 /int1 edge triggered 1 ie0 interrupt 0 edge flag cleared by hardware when interrupt is processed if edge - triggered (see it0).set by hardware when external interrupt is detected on int0# pin. 0 it0 interrupt 0 type control bit clear to select low level active (level triggered) for external interrupt 0 (int 0 #).set to select falling edge active (edge triggered) for external interrupt 0 . 0 /int0 level triggered 1 /i nt0 edge triggered r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w gate1 c/t 1 t1m1 t1m0 gate0 c/t0 t0m1 t0m0 tmod reset 00000000 sfr address 0x89 7 gate1 timer 1 gating control bit 0: enable timer 1 whenever the tr1 bit is set. 1: enable timer 1 only while the int1# pin is high and tr1 bit is set. 6 c/t1 timer 1 counter/timer select bit 0: timer operation: timer 1 counts the divided - down system clock. 1: counter operation: timer 1 counts negative transitions on external pin t1. 5 t1m1 timer 1 mode select bits 4 t1m0 timer 1 mode select bits t1m1 t1m0 mode 0 0 mode 0: 8 - bit timer/counter (th1) with 5 - bit presale (tl1). 0 1 mode 1: 16 - bit timer/counter. 1 0 mode 2: 8 - bit auto - reload timer/counter (tl1). reloaded from th1 at overflow. 1 1 mode 3: timer 1 halted. retains count. 3 gate0 timer 0 gating control bit 0: enable timer 0 whenever the tr 0 bit is set.
bl 6810 shanghai belling c orp., ltd. 29 / 50 1: enable timer 0 only while the int 0 # pin is high and tr 0 bit is set. 2 c/t0 timer 0 counter/timer select bit 0: timer operation: timer 0 counts the divided - down system clock. 1: counter operation: timer 0 counts negative transitions on external pin t 0 . 1 t0m1 timer 0 mode select bits 0 t0m0 timer 0 mode select bits t0m1 t01m0 mode 0 0 mode 0: 8 - bit timer/counter (th0) with 5 - bit presale (tl0). 0 1 mode 1: 16 - bit timer/counter. 1 0 mode 2: 8 - bit auto - reload timer/counter (tl0). reloaded from th0 at overflow. 1 1 mode 3: tl0 is an 8 - bit timer/counter. r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w smod smod2 pcon reset 0 1111111 sfr address 0x8 7 7 smod uart baud rate select bit 6 nc 5 nc 4 nc 3 smod2 timer 1 clock select 0 f clk/12 1 fclk 2 nc 1 nc 0 nc
bl 6810 shanghai belling c orp., ltd. 30 / 50 9.2 timer 2 it is a 16 - bit timer/counter: the count is maintained by two 8 - bit timer registers : th2 and tl2 . timer 2 includes the following enhancements: auto - reload mode (up or down counter) programmable clock - output r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w tf2 tr2 tcon2 reset 00000000 sfr address 0xc 8 7 nc 6 nc 5 tf 2 timer 2 overflow flag 0 timer 2 does not overflow 1 timer 2 overflow must be cleared by software. set by hardware on timer 2 overflow. 4 tr 2 timer 2 run control bit 0 disable timer 2 1 enable timer 2 3 nc 2 nc 1 nc 0 nc r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w gate 2 c/t 2 t 2 m1 t 2 m0 tmod 2 reset 00000000 sfr address 0xc 9 7 nc 6 nc 5 nc 4 nc 3 gate 2 timer 2 gating control bit 0 : e nable timer 2 whenever the tr 2 bit is set. 1: invalid
bl 6810 shanghai belling c orp., ltd. 31 / 50 2 c/t 2 timer/counter 2 select bit 0 : timer operation (input from internal clock system: fosc). 1 : invalid 1 t 2 m1 timer 2 mode select bits 0 t 2 m0 timer 2 mode select bits t0m1 t01m0 mode 0 0 invalid 0 1 mode 1: 16 - bits counter/timer 1 0 mode 2 1 1 invalid note: the function of gate2 is identical with tr2 but o pposite polarity . it means to turn off timer 2 by gate2=1 or tr2=0.
bl 6810 shanghai belling c orp., ltd. 32 / 50 10 watchdog watchdog can be used by configuring the wdtcon register . watchdog maximum timeout is 104ms. if interval time of two write operating for wdtdata register exceed the specified time, wdt will generate a reset. you can configure and enable / disable wdt by software. after system reset the watchdog is enabled. r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w ewdt rwdt wdt2 wdt1 wdt 0 wdtcon reset 00000000 sfr address 0x95 7 ewdt watchdog control bit 0 watchdog disable 1 watchdog enable 6 rwdt watchdog overflow control bit 0 w atchdog overflow as interrupt 1 w atchdog overflow as reset 5 nc 4 nc 3 nc 2 wdt2 watch clock select bit 1 wdt1 watch clock select bit 0 wdt0 watch clock select bit wd t2 wdt1 wdt0 clock select 0 0 0 fclk/ 3 2 0 0 1 fclk/ 6 4 0 1 0 fclk/ 12 8 0 1 1 fclk/ 25 6 1 0 0 fclk/ 512 1 0 1 fclk/ 102 4 1 1 0 fclk/ 204 8 1 1 1 fclk/ 409 6 r/ w r/ w r/ w r/ w r/ w r/ w r/ w r/ w - - - - - - - - wdtcon reset 00000000 sfr address 0x 96 used for loading into watchdog counter
bl 6810 shanghai belling c orp., ltd. 33 / 50 11 spi the spi interface is only available when the BL6810 is set to device mode, BL6810 spi interface only use as a slave device . spi interface is mainly used for data transmission between conc entrator modules and the host stm32 . ? full - duplex serial bus ? only use as a slave device ? three - line mode ? clock is provided by the master device , the maximum clock rate is 250k ? tra nsfer 8 - bit data , high byte first 11.1 system block m o s i s d i m i s o s d o s c k s c k g p i o s c s s d i s d o s c k s c s s d i s d o s c k s c s g p i o g p i o s t m 3 2 b l 6 8 1 0 b l 6 8 1 0 b l 6 8 1 0
bl 6810 shanghai belling c orp., ltd. 34 / 50 11.2 sequence diagram the default configuration cpol= 1 cpha= 1 the same in stm32. 11.3 download processes stm32 pull down the chip select port scl of BL6810 for data transmission request. the data will be stored in the spibuf register of BL6810 . then the data in BL6810's spibuf transferred to the stm32 spibuf register too , complete d the data exchange at the end . in device mode, the data transmission from stm32 to BL6810 related with extended registers . 11.4 upload processes after BL6810 received data frame transferred from power line, each byte will be stored in databuf register a ccording to the order. when BL6810 got the first byte and tr ansmitted it to spibuf , int pin will output low automatic for telling stm32 it is time to take the data. stm32 should receive the data in spibuf immediately otherwise it will be overwritten by subsequent bytes and data frame will miss. at bpsk mode ( 5.48kbps ) , the valid time of each byte is about 1.46ms.
bl 6810 shanghai belling c orp., ltd. 35 / 50 12 chip work mode BL6810 supports two work modes, soc mode and device mode. 12.1 soc mode soc mode is typically used for meter modules or ii collector . w e can use 8051 core for data reception and transmission process. such as application layer data framing , parsing, routing established at the network layer , the data forwardi ng , and the phy layer of the data transmission and reception processing can be completed by BL6810 . c ode will be written by chip programming interface. 12.2 devi ce mode device mode is typically used for concentrator modules . now BL6810 only used as a channel for phy layer data transmitting and receiv ing and communicating with stm32 with spi interface. t he host transmits the control byte and data to expand registers of BL6810 th r ough spi interface. BL6810 will process this data base on control byte automatic. a t this situation, no need to write any code into BL6810 and all control code for concentrator module ar e stored in the host computer.
bl 6810 shanghai belling c orp., ltd. 36 / 50 13 application notes 13.1 communication block description t he main ly analog modules in BL6810 include high - pass filter (hpf), a variable gain amplifier (vga), low pass filter (lpf), ad converter (adc), da converter (dac), the output low pass filter (tx_lpf) and c lass ab pa . in rx section , hpf is used to filter out l ow frequency signals below 100 khz , vga provides 0 - 66db voltage gain. lpf is an anti - aliasing filter, adc quantified analog signals to 12bit for digital module. in tx section, 12 - bits digital signal provided by the transmission module is converte d to analog signal by dac. when the analog signal passed the lpf, it will be send to power line by the classab driving circuit BL6810 analog front end the 12 - bits digital signal output from adc passes through a high - performance band pass filter to filter out - of - band noise, the signal down - sampling, down - sampling signal and its 90 - degree shift signal are put into costas loo p and locked . t he locked signal was put into frame lock module for signal extracting after interpolating and processing by matched filter. the process of sending the signal is relatively simpl y , the data need to send is written to communication module and modulated at carriers, and is send to dad after passed shaping filter . at the end the data is output after passed lpf and pre - driver.
bl 6810 shanghai belling c orp., ltd. 37 / 50 BL6810 communication receive module 13.2 spi description serial peripheral interface (spi) is a four - wire serial communication protocol developed by motorola . spi protocol is master - slave mode, this mode usually has a master device and one or more slave devices . t he following diagram shows the device spi interface . the master device controls the data transmission by supporting s hift clock and slave enable signal. the slave enable signal is an optional high and low level, it can activate the serial input and output of slave device (without clock). i f slave enable signal absent, the communication between master and salve device is determined by shift clock. at this moment, the slave device must remain active throughout and only one slave device should exist.
bl 6810 shanghai belling c orp., ltd. 38 / 50 port name input/ output b it side synchronization / a synchronization function description rst in 1 a synchronization internal system reset signal clk in 1 synchronization c lock (10mhz) adr out 7 synchronization exte rnally accessible register bank address bus input dbi in 8 synchronization externally accessible register bank data bus out put dbo out 8 synchronization externally accessible register bank data bus input wena out 1 synchronization externally accessible register bank synchronous write enable scs in 1 a synchronization spi chip select sck in 1 a synchronization spi serial clock input si in 1 a synchronization spi serial data input so out 1 synchronization spi serial data out put soe out 1 synchronization spi serial data output enable control sequence diagram
bl 6810 shanghai belling c orp., ltd. 39 / 50 13.3 BL6810 expand register in soc mode, mcu access registers as soc iated with communication by accessing th e sfr addresses 0xd9 and 0xd8 , expand registers are not directly accessible. t he expand register address is stored in 0xd9, the data read or written from expand register is stored in 0xd8. in addition , the expand register is write - protected . 0xff should be written into 0xd8 and 0xd9 for r eleas ing the write protection before write op eration. if there is a request to send data , mcu should write the data to be transmitted to 0xda. a t device mode, d ata to be transmitted should be written to 0x13. 13.3.1 chip id name address initial value type description chip id 0x00 0xa1 ro chip id 13.3.2 the period of line voltage name address initial value type description line period 0x02 0x00 ro the period of line voltage 0.1ms/lsb 13.3.3 agc control name address initial value type description agc_ctr 0x09 0x00 rw [4:0]: control signals for agc [7]: manual [6:5]: reserved
bl 6810 shanghai belling c orp., ltd. 40 / 50 13.3.4 transmission control name address initial value type description xt_ctrl 0x10 0x00 rw [7] : transmit/receive control 1: transmit 0: receive [6]: longhead [5:3]: reserved [2]: pd_dac [1]: xmt_phase_ena, sending by zero cross [0]: xmt_pifp, sending fire program data 13.3.5 frequency/rate select name address initial value type description xt_sel 0x11 0x10 rw [7:4]: xmt_ch, car rier frequency selection [4]: 131.58khz. 1: on; 0: off [5]: 263.16khz. 1: on; 0: off [6]: 312.50khz. 1: on; 0: off [7]: 416.67khz. 1: on; 0: off [1:0]: xmt_rate, data rate selection 00: 5.48kbps 01: 783bps 10: 87bps 11: reserved 13.3.6 t ransmit p ower c ontrol name address initial value type description xt_amp 0x12 0x80 rw transmit power control 0x00: minimum 0x80: maximum 13.3.7 s ending d ata name address initial value type description xt_data 0x13 0x00 rw device mode sending data
bl 6810 shanghai belling c orp., ltd. 41 / 50 13.3.8 sending status name address initial value type description xt_status 0x14 0x00 rw [0]: xmt_empty, buffer data is being sent out, hardware set and clear [1]: x mt_expire, data sending expire, software clear [2]: xmt_success, software clear [3]: reserved [7]: frame end enable [6:4]: reserved 13.3.9 r eceive s tatus name address initial value type description rec_status 0x25 0x00 ro receive status: [7]: reserved [6]: active high for dsss63 [5]: active high for dsss15 [4]: active high for bpsk [3]: receive data interrupt status of channel3 [2]: receive data interrupt status of channel2 [1]: receive data interrupt status of channel1 [0]: receive data interrupt status of channel0 13.3.10 carrier 1 f rame phase name address initial value type description fphase_carrier1 0x26 0x00 ro the phase at frame sync
bl 6810 shanghai belling c orp., ltd. 42 / 50 13.3.11 carrier 1 interrupt information name address initial value type description intmsg_carrier1 0x27 0x00 ro [7:0]: message 0: training code 1: frame head detection 2: byte receiving 3: frame end received success 4: frame head failure 5: frame end failure 6: fire update frame head detection 7: zero crossing frame head detection 13.3.12 carrier 1 received d at a name address initial value type description data_carrier1 0x28 0x00 ro received data 13.3.13 carrier 1 parity name address initial value type description parity_carrier1 0x29 0x00 ro [2:0]: received compliment data [p, 0, 1] [7:3]: reserved 13.3.14 carrier 2 f rame phase name address initial value type description fphase_carrier2 0x2a 0x00 ro the phase at frame sync
bl 6810 shanghai belling c orp., ltd. 43 / 50 13.3.15 carrier 2 interrupt information name address initial value type description intmsg_carrier2 0x2b 0x00 ro [7:0]: message 0: training code 1: frame head detection 2: byte receiving 3: frame end received success 4: frame head failure 5: frame end failure 6: fire update frame head detection 7: zero crossing frame head detection 13.3.16 carrier 2 received d at a name address initial value type description data_carrier2 0x2c 0x00 ro received data 13.3.17 carrier 2 parity name address initial value type description parity_carrier2 0x2d 0x00 ro [2:0]: received compliment data [p, 0, 1] [7:3]: reserved 13.3.18 carrier 3 f rame phase name address initial value type description fphase_carrier3 0x2e 0x00 ro the phase at frame sync
bl 6810 shanghai belling c orp., ltd. 44 / 50 13.3.19 carrier 3 interrupt information name address initial value type description intmsg_carrier3 0x2f 0x00 ro [7:0]: message 0: training code 1: frame head detection 2: byte receiving 3: frame end received success 4: frame head failure 5: frame end failure 6: fire update frame head detection 7: zero crossing frame head detection 13.3.20 carrier 3 received d at a name address initial value type description data_carrier3 0x30 0x00 ro received data 13.3.21 carrier 3 parity name address initial value type description parity_carrier3 0x31 0x00 ro [2:0]: received compliment data [p, 0, 1] [7:3]: reserved 13.3.22 carrier 4 f rame phase name address initial value type description fphase_carrier4 0x32 0x00 ro the phase at frame sync
bl 6810 shanghai belling c orp., ltd. 45 / 50 13.3.23 carrier 4 interrupt information name address initial value type description intmsg_carrier4 0x33 0x00 ro [7:0]: message 0: training code 1: frame head detection 2: byte receiving 3: frame end received success 4: frame head failure 5: frame end failure 6: fire update frame head detection 7: zero crossing frame head detection 13.3.24 carrier 4 received d at a name address initial value type description data_carrier4 0x34 0x00 ro received data 13.3.25 carrier 4 parity name address initial value type description parity_carrier2 0x35 0x00 ro [2:0]: received compliment data [p, 0, 1] [7:3]: reserved 13.3.26 r eceiving s tatus and m ask name address initial value type description status_mask_carrier 0x36 0x00 rw [7]: receiving status channel 3 [6]: receiving status channel 2 [5]: receiving status channel 1 [4]: receiving status channel 0 [3]: receive channel3 mask [2]: receive channel2 mask [1]: receive channel1 mask [0]: receive channel0 mask
bl 6810 shanghai belling c orp., ltd. 46 / 50 13.3.27 rec_int_status name address initial value type description frec_status 0x37 0x00 ro [7]: reserved [6]: active high for dsss63 [5]: active high for dsss15 [4]: active high for bpsk [3]: fire program interrupt status of channel3 [2]: fire program interrupt status of channel2 [1]: fire program interrupt status of channel1 [0]: fire program interrupt status of channel0 13.3.28 receiving snr calc. status note: pos and pon will be generated automatic after data frame transmission ending. 13.3.29 receiving signal power name address initial value type description pos[15:8] 0x41 0x00 ro power of signal pos[7:0] 0x42 0x00 ro power of signal name address initial value type description snrcal_ctrl_status 0x40 0x00 rw [7]: force_snr_calc. force snr calculation [5:4]: channel select: 00: channel 0 01: channel 1 10: channel 2 11: channel 3 [3:0]: snr_valid. end ind ication of snr calculation set to 1 by hardware, reset to 0 by software
bl 6810 shanghai belling c orp., ltd. 47 / 50 13.3.30 receiving signal noise name address initial value type description pon[15:8] 0x43 0x00 ro power of noise pon[7:0] 0x44 0x00 ro power of noise 13.3.31 crc initial register name address initial value type description crc_init 0x45 0x00 rw [0]: crc initialization [7:1]: reserved 13.3.32 crc input data name address initial value type description crc_datain 0x46 0x00 rw crc input data 13.3.33 crc data name address initial value type description crc_value[15:8] 0x47 0x00 ro crc data crc_value [7:0] 0x48 0x00 ro crc data
bl 6810 shanghai belling c orp., ltd. 48 / 50 13.3.34 rs coding register name address initial value type description rsdata[0] 0x4a 0x00 rw source data for rs coding rsdata[1] 0x4b 0x00 rw source data for rs coding rsdata[2] 0x4c 0x00 rw source data for rs coding rsdata[3] 0x4d 0x00 rw source data for rs coding rsdata[4] 0x4e 0x00 rw source data for rs coding rsdata[5] 0x4f 0x00 rw source data for rs coding rsdata[6] 0x50 0x00 rw source data for rs coding rsdata[7] 0x51 0x00 rw source data for rs coding rsdata[8] 0x52 0x00 rw source data for rs coding rsdata[9] 0x53 0x00 rw source data for rs coding rsdata[10] 0x54 0x00 rw destination data after rs coding rsdata[11] 0x55 0x00 rw destination data after rs coding rsdata[12] 0x56 0x00 rw destination data after rs coding rsdata[13] 0x57 0x00 rw destination data after rs coding rsdata[14] 0x58 0x00 rw destination data after rs coding rsdata[15] 0x59 0x00 rw destination data after rs coding rsdata[16] 0x5a 0x00 rw destination data after rs coding rsdata[17] 0x5b 0x00 rw destination data after rs coding rsdata[18] 0x5c 0x00 rw destination data after rs coding rsdata[19] 0x5d 0x00 rw destination data after rs coding 13.3.35 rs control register name address initial value type description rs_ctrl 0x5e 0x00 rw [7]: rs_buf_clr [6]: code_ena [5]: decode_ena [4]: code_over [3]: decode_over [2]: decode_err [1:0]: reserved note: the source data can be form by 1 - 10 bytes at rs coding. but the destination data formed by 10 bytes. i f source data is less than 10 bytes, rs buffer must be cl eared. t he source and destination data should be transmitted together.
bl 6810 shanghai belling c orp., ltd. 49 / 50 13.3.36 user flash control register name address initial value type description adr_nvr_addrl 0xf0 0x00 rw l ow address adr_nvr_addrh 0xf1 0x00 rw h igh address adr_nvr_wd 0xf2 0x00 rw w rite data adr_nvr_rd 0xf3 0x00 ro r ead data adr_nvr_ctrl 0xf4 0x00 rw control byte "2a", page erase "10", read "01", write 1. n vr can read and write a ddress from 0x000 to 0x1ff , total is 512 bytes 2. l ow address written first, and then written high address. the whole process cant be interrupted, otherwise the operation may fail . advised to turn off interrupts . 3. address increase 1 automatic. 4. cpu is in suspended state when writ ing operation, and recovery after complet ed , no need to use so ftware delay the sample application for reading and writing a byte unsigned char ifp_nvr_read(unsigned char addr_h, unsigned char addr_l) /*using 0*/ { ssc _adr = adr_nvr_addrl; ssc _dat = addr_l; ssc _adr = adr_nvr_addrh; ssc _dat = addr_h; ssc _adr = adr_nvr_ctrl; ssc _dat = 0x10; ssc _adr = adr_nvr_rd; return ssc _dat; } void ifp_nvr_write(unsigned char addr_h, unsigned char addr_l, unsigned char dt) /*using 0*/ { ssc _adr = adr_nvr_addrl; ssc _dat = addr_l; ssc _adr = adr_nvr_addrh; ssc _dat = addr_h; ssc _adr = adr_nvr_wd; ssc _dat = dt; ssc _adr = adr_nvr_ctrl; ssc _dat = 0x01; }
bl 6810 shanghai belling c orp., ltd. 50 / 50 13.3.37 write protect register name address initial value type description adr_wptd 0x ff 0x00 rw write 0xff to allow csr operation must write 0xff to this register before operate expand register ext_adr = adr_wptd; ext_dat = 0xff;


▲Up To Search▲   

 
Price & Availability of BL6810

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X